<template>
    <div class="shadow" :class="{active:show}">
    </div>
</template>
<script>
export default {
    props: ['show']
}
</script>
<style lang="scss" scoped>
.shadow {
    position: absolute;
    display: none;
    width: 10rem;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    background: rgb(0, 0, 0);
    opacity: 0;
    -webkit-transition: opacity .3s linear;
    transition: opacity .3s linear;
    z-index: 0;
    &.active {
        z-index: 1;
        opacity: 0.6;
        display: block;
    }
}
</style>